package cn.jiyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.swing.*;
import java.util.Date;

@Data
public class Project {
    private int pid;

    private String pname;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date starttime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endtime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatetime;

    private String did;

    private Integer cid;

    private Integer flag;

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Project() {
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
}
